package multithread.chapter04;

public class XXXX {

	public static void main(String[] args) {
		int sss=5;
		add(sss);
		System.out.println(sss);
		
		Person pp = new Person(7);
		add(pp);
		System.out.println(pp.age);
	}
	
	static void add(int a){
		a++;
	}
	
	static void add(Person a){
		a.age++;
	}
	
}
class Person{
	int age;
	
		public Person(int age) {
			this.age = age;
		}
	
	public int getAge() {
		return age;
	}
	
	public void setAge(int age) {
		this.age = age;
	}
	
}
